package com.bruce.spring.http.client.controller;

import com.bruce.spring.http.api.Obj;
import com.bruce.spring.http.api.Store;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;

/**
 * Created by bruce in 2025/6/26 01:43
 */
@HttpExchange
public interface Http2TestApi {


    @PostExchange("/h2c")
    ResponseEntity<String> postBody(@RequestBody Obj obj);



    @GetExchange("/index/say")
    String getRequest(@RequestParam String name1);


}
